#pragma once
#include "nds.h"
#include "..\include\InputEventManager.hpp"
#include "..\include\BackgroundManager.hpp"
#include "..\include\Game.hpp"
#include "..\include\enum.h"

#define DEBUG 0
/*! \class Application
	\brief Handles the whole application 	
*/

class Application
{
public:
	
	BackgroundManager* bgManager;
	InputEventManager* inputManager;
	Game* game;
	bool soundGame, soundMenu, soundPause;

	//! enum which indicate the state of the Application
	AppState state; 

	//option unsigned int score

	Application(void);
	~Application(void);

	void update();
	void init();
	void initVideo();

	void setPause();
	void changeApplicationState(); //Inutile si simple modif d'une seule variable
	void checkPursuit(); 
	void checkWin();
	void hitEnemy();
	void save();
	void unlockTrophy();
	void loadLevel();
	void loadSounds();

};
